]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Delay handling of :first/:last-child changes
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 2 May 2019 19:12:01 +0000 (21:12 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 7 May 2019 20:28:03 +0000 (20:28 +0000)
commit0afd600ea4bcbb04cef87c17e12609807afd5d1b
tree79c88a7ca121ee3297968954670830b0c0533b08
parent598407b14a82bcaed3fce54f9aa97b49e0c1c511
st: Delay handling of :first/:last-child changes

Updating the :first/:last-child pseudo classes can result in a lot
of unnecessary style changes when bulk-adding children to a container,
as every child ends up as the new last child.

Address this by deferring the style change to an idle, so we only do
the work once for the actual first and last child.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/529
src/st/st-widget.c